package com.zq.it.pojo;

import java.math.BigInteger;
import java.sql.Timestamp;

/**
 * Admin entity. @author MyEclipse Persistence Tools
 */

public class Admin implements java.io.Serializable {

	// Fields

	private BigInteger id;
	private Teacher teacher;
	private String password;
	private Timestamp pretime;
	//private Timestamp hqtime;
	private Integer grantMsg;
	private Integer grantTeacher;
	private Integer grantAcmy;
	private Integer grantMajor;
	private Integer grantChapter;
	private Integer grantStu;
	private Integer grantCourse;
	private Integer grantAdr;
	private Integer grantCourseM;
	private Integer grantNetc;
	private Integer grantClass;
	private Integer count=0;

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	private Integer shenfen;

	// Constructors

	/** default constructor */
	public Admin() {
	}

	/** minimal constructor */
	
	// Property accessors

	public BigInteger getId() {
		return this.id;
	}

	public void setId(BigInteger id) {
		this.id = id;
	}

	public Teacher getTeacher() {
		return this.teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Timestamp getPretime() {
		return this.pretime;
	}

	public void setPretime(Timestamp pretime) {
		this.pretime = pretime;
	}

	/*public Timestamp getHqtime() {
		return this.hqtime;
	}

	public void setHqtime(Timestamp hqtime) {
		this.hqtime = hqtime;
	}*/

	public Integer getGrantMsg() {
		return this.grantMsg;
	}
	public Integer getShenfen() {
		return shenfen;
	}

	public void setShenfen(Integer shenfen) {
		this.shenfen = shenfen;
	}

	public void setGrantMsg(Integer grantMsg) {
		this.grantMsg = grantMsg;
	}

	public Integer getGrantTeacher() {
		return this.grantTeacher;
	}

	public void setGrantTeacher(Integer grantTeacher) {
		this.grantTeacher = grantTeacher;
	}

	public Integer getGrantAcmy() {
		return this.grantAcmy;
	}

	public void setGrantAcmy(Integer grantAcmy) {
		this.grantAcmy = grantAcmy;
	}

	public Integer getGrantMajor() {
		return this.grantMajor;
	}

	public void setGrantMajor(Integer grantMajor) {
		this.grantMajor = grantMajor;
	}

	public Integer getGrantChapter() {
		return this.grantChapter;
	}

	public void setGrantChapter(Integer grantChapter) {
		this.grantChapter = grantChapter;
	}

	public Integer getGrantStu() {
		return this.grantStu;
	}

	public void setGrantStu(Integer grantStu) {
		this.grantStu = grantStu;
	}

	public Integer getGrantCourse() {
		return this.grantCourse;
	}

	public void setGrantCourse(Integer grantCourse) {
		this.grantCourse = grantCourse;
	}

	public Integer getGrantAdr() {
		return this.grantAdr;
	}

	public void setGrantAdr(Integer grantAdr) {
		this.grantAdr = grantAdr;
	}

	public Integer getGrantCourseM() {
		return this.grantCourseM;
	}

	public void setGrantCourseM(Integer grantCourseM) {
		this.grantCourseM = grantCourseM;
	}

	public Integer getGrantNetc() {
		return this.grantNetc;
	}

	public void setGrantNetc(Integer grantNetc) {
		this.grantNetc = grantNetc;
	}

	public Integer getGrantClass() {
		return this.grantClass;
	}

	public void setGrantClass(Integer grantClass) {
		this.grantClass = grantClass;
	}
	
	public void addCount(){
		count++;
	}

}